<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var arr = [1,2,3,4]
			var arr2 = [
				{name:"xiaoye",age:20},
				{name:"xiaoye2",age:23},
				{name:"xiaoye3",age:26}
			]
			
			/**
			 * 数组元素颠倒
			 */
			arr.reverse()
			console.log(arr);
			arr2.reverse()
			console.log(arr2);
		</script>
	</body>
</html>
